package com.example.hxds.bff.customer.controller;

import cn.dev33.satoken.annotation.SaCheckLogin;
import cn.hutool.core.map.MapUtil;
import com.example.hxds.bff.customer.controller.form.UpdateOrderAboutPaymentForm;
import com.example.hxds.bff.customer.feign.OdrServiceApi;
import com.example.hxds.bff.customer.service.OrderService;
import com.example.hxds.bff.customer.service.PayService;
import com.example.hxds.common.util.R;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import javax.validation.Valid;

/**
 * @Author XUYANG
 * @Date 2024-04-09 19:39
 */
@RestController
@RequestMapping("/pay")
@Tag(name = "PayController",description = "订单模块web接口")
public class PayController {
    @Resource
    private OrderService orderService;
    @PostMapping("/updateOrderAboutPayment")
    @SaCheckLogin
    @Operation(summary = "更新订单支付状态")
    private R updateOrderAboutPayment(@RequestBody @Valid UpdateOrderAboutPaymentForm form){
        String res="付款成功";
        return R.ok().put("result",res);
    }
}
